﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Toolbelt.ComponentModel.DataAnnotations.Schema;

namespace HCD.Entities
{
    [Table("HIS_EXAM_REPORT")]
    public class HisExamReport : Entity<long>
    {
        /// <summary>
        /// 检查单号
        /// </summary>
        [Column("EXAM_NO", TypeName = "VARCHAR(12)"), Required, Index("INDEX_HIS_EXAM_REPORT", 1, IsUnique = true)]
        public string ExamNo { get; set; }

        /// <summary>
        /// 报告号
        /// </summary>
        [Column("REPORT_NO", TypeName = "VARCHAR(20)"), Required, Index("INDEX_HIS_EXAM_REPORT", 2, IsUnique = true)]
        public string ReportNo { get; set; }

        /// <summary>
        /// 检查参数
        /// </summary>
        [Column("EXAM_PARA", TypeName = "VARCHAR(1000)")]
        public string ExamPara { get; set; }

        /// <summary>
        /// 检查所见
        /// </summary>
        [Column("DESCRIPTION", TypeName = "VARCHAR(2000)")]
        public string Description { get; set; }

        /// <summary>
        /// 印象
        /// </summary>
        [Column("IMPRESSION", TypeName = "VARCHAR(2000)")]
        public string Impression { get; set; }

        /// <summary>
        /// 建议
        /// </summary>
        [Column("RECOMMENDATION", TypeName = "VARCHAR(2000)")]
        public string Recommendation { get; set; }

        /// <summary>
        /// 是否阳性
        /// </summary>
        [Column("IS_ABNORMAL", TypeName = "VARCHAR(1)")]
        public string IsAbnormal { get; set; }

        /// <summary>
        /// 访问方式:ftp,http
        /// </summary>
        [Column("FIRST_MEDIA_NAME", TypeName = "VARCHAR(10)")]
        public string FirstMediaName { get; set; }

        /// <summary>
        /// 报告文件路径
        /// </summary>
        [Column("EXAM_PATH", TypeName = "VARCHAR(256)")]
        public string ExamPath { get; set; }
    }
}
